package c.e.a.b.f.b;

/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */
public final class w4 implements Runnable {
    public final /* synthetic */ y5 a;
    public final /* synthetic */ u4 b;

    public w4(u4 u4Var, y5 y5Var) {
        this.b = u4Var;
        this.a = y5Var;
    }

    /* JADX WARNING: Missing block: B:52:0x01bb, code skipped:
            if (r1.equals(r2) == false) goto L_0x01c0;
     */
    /* JADX WARNING: Missing block: B:103:0x0313, code skipped:
            if (android.text.TextUtils.isEmpty(r1.l) == false) goto L_0x0315;
     */
    /* JADX WARNING: Missing block: B:134:0x0481, code skipped:
            if (android.text.TextUtils.isEmpty(r1.l) == false) goto L_0x0483;
     */
    public final void run() {
        /*
        r14 = this;
        r0 = r14.b;
        r1 = r14.a;
        r2 = r0.a();
        r2.g();
        r2 = new c.e.a.b.f.b.j;
        r2.m8448init(r0);
        r2.p();
        r0.u = r2;
        r2 = new c.e.a.b.f.b.n3;
        r3 = r1.f;
        r2.m8715init(r0, r3);
        r2.u();
        r0.v = r2;
        r1 = new c.e.a.b.f.b.m3;
        r1.m8714init(r0);
        r1.u();
        r0.s = r1;
        r1 = new c.e.a.b.f.b.q7;
        r1.m8716init(r0);
        r1.u();
        r0.t = r1;
        r1 = r0.l;
        r1.q();
        r1 = r0.h;
        r1.q();
        r1 = new c.e.a.b.f.b.m4;
        r1.m1454init(r0);
        r0.w = r1;
        r1 = r0.v;
        r3 = r1.b;
        if (r3 != 0) goto L_0x0506;
    L_0x004c:
        r1.w();
        r3 = r1.a;
        r3 = r3.F;
        r3.incrementAndGet();
        r3 = 1;
        r1.b = r3;
        r1 = r0.d();
        r1 = r1.l;
        r4 = 33025; // 0x8101 float:4.6278E-41 double:1.63165E-319;
        r4 = java.lang.Long.valueOf(r4);
        r5 = "App measurement initialized, version";
        r1.b(r5, r4);
        r1 = r0.d();
        r1 = r1.l;
        r4 = "To enable debug logging run: adb shell setprop log.tag.FA VERBOSE";
        r1.a(r4);
        r2.t();
        r1 = r2.c;
        r2 = r0.b;
        r2 = android.text.TextUtils.isEmpty(r2);
        if (r2 == 0) goto L_0x00b8;
    L_0x0083:
        r2 = r0.t();
        r2 = r2.s0(r1);
        if (r2 == 0) goto L_0x0096;
    L_0x008d:
        r1 = r0.d();
        r1 = r1.l;
        r2 = "Faster debug mode event logging enabled. To disable, run:\n  adb shell setprop debug.firebase.analytics.app .none.";
        goto L_0x00b5;
    L_0x0096:
        r2 = r0.d();
        r2 = r2.l;
        r4 = "To enable faster debug mode event logging run:\n  adb shell setprop debug.firebase.analytics.app ";
        r1 = java.lang.String.valueOf(r1);
        r5 = r1.length();
        if (r5 == 0) goto L_0x00ad;
    L_0x00a8:
        r1 = r4.concat(r1);
        goto L_0x00b2;
    L_0x00ad:
        r1 = new java.lang.String;
        r1.<init>(r4);
    L_0x00b2:
        r13 = r2;
        r2 = r1;
        r1 = r13;
    L_0x00b5:
        r1.a(r2);
    L_0x00b8:
        r1 = r0.d();
        r1 = r1.m;
        r2 = "Debug-level message logging enabled";
        r1.a(r2);
        r1 = r0.E;
        r2 = r0.F;
        r2 = r2.get();
        if (r1 == r2) goto L_0x00e8;
    L_0x00cd:
        r1 = r0.d();
        r1 = r1.f;
        r2 = r0.E;
        r2 = java.lang.Integer.valueOf(r2);
        r4 = r0.F;
        r4 = r4.get();
        r4 = java.lang.Integer.valueOf(r4);
        r5 = "Not all components initialized";
        r1.c(r5, r2, r4);
    L_0x00e8:
        r0.x = r3;
        r0 = r14.b;
        r1 = r14.a;
        r1 = r1.g;
        r2 = c.e.a.b.f.b.d.c;
        r4 = r0.a();
        r4.g();
        r4 = c.e.a.b.e.c.v8.a();
        r5 = 0;
        r6 = 0;
        if (r4 == 0) goto L_0x01f9;
    L_0x0101:
        r4 = r0.g;
        r7 = c.e.a.b.f.b.p.H0;
        r4 = r4.o(r7);
        if (r4 == 0) goto L_0x01f9;
    L_0x010b:
        r4 = r0.o();
        r4 = r4.y();
        r7 = r0.o();
        r7.g();
        r7 = r7.w();
        r8 = 100;
        r9 = "consent_source";
        r7 = r7.getInt(r9, r8);
        r8 = r0.g;
        r9 = c.e.a.b.f.b.p.I0;
        r8 = r8.o(r9);
        r9 = 40;
        if (r8 == 0) goto L_0x01cc;
    L_0x0132:
        r8 = r0.g;
        java.util.Objects.requireNonNull(r8);
        r10 = c.e.a.b.e.c.v8.a();
        if (r10 == 0) goto L_0x014d;
    L_0x013d:
        r10 = c.e.a.b.f.b.p.I0;
        r10 = r8.o(r10);
        if (r10 != 0) goto L_0x0146;
    L_0x0145:
        goto L_0x014d;
    L_0x0146:
        r10 = "google_analytics_default_allow_ad_storage";
        r8 = r8.w(r10);
        goto L_0x014e;
    L_0x014d:
        r8 = r5;
    L_0x014e:
        r10 = r0.g;
        java.util.Objects.requireNonNull(r10);
        r11 = c.e.a.b.e.c.v8.a();
        if (r11 == 0) goto L_0x0169;
    L_0x0159:
        r11 = c.e.a.b.f.b.p.I0;
        r11 = r10.o(r11);
        if (r11 != 0) goto L_0x0162;
    L_0x0161:
        goto L_0x0169;
    L_0x0162:
        r11 = "google_analytics_default_allow_analytics_storage";
        r10 = r10.w(r11);
        goto L_0x016a;
    L_0x0169:
        r10 = r5;
    L_0x016a:
        r11 = 20;
        if (r8 != 0) goto L_0x0170;
    L_0x016e:
        if (r10 == 0) goto L_0x0182;
    L_0x0170:
        r12 = r0.o();
        r12 = r12.t(r11);
        if (r12 == 0) goto L_0x0182;
    L_0x017a:
        r1 = new c.e.a.b.f.b.d;
        r1.m1399init(r8, r10);
        r9 = 20;
        goto L_0x01c0;
    L_0x0182:
        r8 = r0.z();
        r8.t();
        r8 = r8.k;
        r8 = android.text.TextUtils.isEmpty(r8);
        if (r8 != 0) goto L_0x01a1;
    L_0x0191:
        r8 = 30;
        if (r7 == r8) goto L_0x0197;
    L_0x0195:
        if (r7 != r9) goto L_0x01a1;
    L_0x0197:
        r1 = r0.s();
        r7 = r0.G;
        r1.A(r2, r11, r7);
        goto L_0x01be;
    L_0x01a1:
        if (r1 == 0) goto L_0x01be;
    L_0x01a3:
        r7 = r1.g;
        if (r7 == 0) goto L_0x01be;
    L_0x01a7:
        r7 = r0.o();
        r7 = r7.t(r9);
        if (r7 == 0) goto L_0x01be;
    L_0x01b1:
        r1 = r1.g;
        r1 = c.e.a.b.f.b.d.g(r1);
        r2 = r1.equals(r2);
        if (r2 != 0) goto L_0x01be;
    L_0x01bd:
        goto L_0x01c0;
    L_0x01be:
        r1 = r5;
        r9 = 0;
    L_0x01c0:
        if (r1 == 0) goto L_0x01f2;
    L_0x01c2:
        r2 = r0.s();
        r7 = r0.G;
        r2.A(r1, r9, r7);
        goto L_0x01f1;
    L_0x01cc:
        if (r1 == 0) goto L_0x01f2;
    L_0x01ce:
        r7 = r1.g;
        if (r7 == 0) goto L_0x01f2;
    L_0x01d2:
        r7 = r0.o();
        r7 = r7.t(r9);
        if (r7 == 0) goto L_0x01f2;
    L_0x01dc:
        r1 = r1.g;
        r1 = c.e.a.b.f.b.d.g(r1);
        r2 = r1.equals(r2);
        if (r2 != 0) goto L_0x01f2;
    L_0x01e8:
        r2 = r0.s();
        r7 = r0.G;
        r2.A(r1, r9, r7);
    L_0x01f1:
        r4 = r1;
    L_0x01f2:
        r1 = r0.s();
        r1.z(r4);
    L_0x01f9:
        r1 = r0.o();
        r1 = r1.e;
        r1 = r1.a();
        r7 = 0;
        r4 = (r1 > r7 ? 1 : (r1 == r7 ? 0 : -1));
        if (r4 != 0) goto L_0x021d;
    L_0x0209:
        r1 = r0.o();
        r1 = r1.e;
        r2 = r0.n;
        r2 = (c.e.a.b.b.j.c) r2;
        java.util.Objects.requireNonNull(r2);
        r9 = java.lang.System.currentTimeMillis();
        r1.b(r9);
    L_0x021d:
        r1 = r0.o();
        r1 = r1.j;
        r1 = r1.a();
        r1 = java.lang.Long.valueOf(r1);
        r1 = r1.longValue();
        r4 = (r1 > r7 ? 1 : (r1 == r7 ? 0 : -1));
        if (r4 != 0) goto L_0x024f;
    L_0x0233:
        r1 = r0.d();
        r1 = r1.n;
        r7 = r0.G;
        r2 = java.lang.Long.valueOf(r7);
        r4 = "Persisting first open";
        r1.b(r4, r2);
        r1 = r0.o();
        r1 = r1.j;
        r7 = r0.G;
        r1.b(r7);
    L_0x024f:
        r1 = r0.g;
        r2 = c.e.a.b.f.b.p.D0;
        r1 = r1.o(r2);
        if (r1 == 0) goto L_0x0276;
    L_0x0259:
        r1 = r0.s();
        r1 = r1.n;
        r2 = r1.c();
        if (r2 == 0) goto L_0x0276;
    L_0x0265:
        r2 = r1.b();
        if (r2 == 0) goto L_0x0276;
    L_0x026b:
        r1 = r1.a;
        r1 = r1.o();
        r1 = r1.A;
        r1.b(r5);
    L_0x0276:
        r1 = r0.m();
        if (r1 != 0) goto L_0x02f7;
    L_0x027c:
        r1 = r0.i();
        if (r1 == 0) goto L_0x04f4;
    L_0x0282:
        r1 = r0.t();
        r2 = "android.permission.INTERNET";
        r1 = r1.p0(r2);
        if (r1 != 0) goto L_0x0299;
    L_0x028e:
        r1 = r0.d();
        r1 = r1.f;
        r2 = "App is missing INTERNET permission";
        r1.a(r2);
    L_0x0299:
        r1 = r0.t();
        r2 = "android.permission.ACCESS_NETWORK_STATE";
        r1 = r1.p0(r2);
        if (r1 != 0) goto L_0x02b0;
    L_0x02a5:
        r1 = r0.d();
        r1 = r1.f;
        r2 = "App is missing ACCESS_NETWORK_STATE permission";
        r1.a(r2);
    L_0x02b0:
        r1 = r0.a;
        r1 = c.e.a.b.b.k.b.a(r1);
        r1 = r1.c();
        if (r1 != 0) goto L_0x02ea;
    L_0x02bc:
        r1 = r0.g;
        r1 = r1.C();
        if (r1 != 0) goto L_0x02ea;
    L_0x02c4:
        r1 = r0.a;
        r1 = c.e.a.b.f.b.n4.a(r1);
        if (r1 != 0) goto L_0x02d7;
    L_0x02cc:
        r1 = r0.d();
        r1 = r1.f;
        r2 = "AppMeasurementReceiver not registered/enabled";
        r1.a(r2);
    L_0x02d7:
        r1 = r0.a;
        r1 = c.e.a.b.f.b.t9.U(r1);
        if (r1 != 0) goto L_0x02ea;
    L_0x02df:
        r1 = r0.d();
        r1 = r1.f;
        r2 = "AppMeasurementService not registered/enabled";
        r1.a(r2);
    L_0x02ea:
        r1 = r0.d();
        r1 = r1.f;
        r2 = "Uploading is not possible. App measurement disabled";
        r1.a(r2);
        goto L_0x04f4;
    L_0x02f7:
        r1 = r0.z();
        r1.t();
        r1 = r1.k;
        r1 = android.text.TextUtils.isEmpty(r1);
        if (r1 == 0) goto L_0x0315;
    L_0x0306:
        r1 = r0.z();
        r1.t();
        r1 = r1.l;
        r1 = android.text.TextUtils.isEmpty(r1);
        if (r1 != 0) goto L_0x03df;
    L_0x0315:
        r0.t();
        r1 = r0.z();
        r1.t();
        r1 = r1.k;
        r2 = r0.o();
        r2.g();
        r2 = r2.w();
        r4 = "gmp_app_id";
        r2 = r2.getString(r4, r5);
        r7 = r0.z();
        r7.t();
        r7 = r7.l;
        r8 = r0.o();
        r8.g();
        r8 = r8.w();
        r9 = "admob_app_id";
        r8 = r8.getString(r9, r5);
        r1 = c.e.a.b.f.b.t9.d0(r1, r2, r7, r8);
        if (r1 == 0) goto L_0x03a3;
    L_0x0352:
        r1 = r0.d();
        r1 = r1.l;
        r2 = "Rechecking which service to use due to a GMP App Id change";
        r1.a(r2);
        r1 = r0.o();
        r1.g();
        r2 = r1.x();
        r7 = r1.w();
        r7 = r7.edit();
        r7.clear();
        r7.apply();
        if (r2 == 0) goto L_0x037b;
    L_0x0378:
        r1.s(r2);
    L_0x037b:
        r1 = r0.s;
        c.e.a.b.f.b.u4.p(r1);
        r1 = r0.s;
        r1.y();
        r1 = r0.t;
        r1.D();
        r1 = r0.t;
        r1.C();
        r1 = r0.o();
        r1 = r1.j;
        r7 = r0.G;
        r1.b(r7);
        r1 = r0.o();
        r1 = r1.l;
        r1.b(r5);
    L_0x03a3:
        r1 = r0.o();
        r2 = r0.z();
        r2.t();
        r2 = r2.k;
        r1.g();
        r1 = r1.w();
        r1 = r1.edit();
        r1.putString(r4, r2);
        r1.apply();
        r1 = r0.o();
        r2 = r0.z();
        r2.t();
        r2 = r2.l;
        r1.g();
        r1 = r1.w();
        r1 = r1.edit();
        r1.putString(r9, r2);
        r1.apply();
    L_0x03df:
        r1 = c.e.a.b.e.c.v8.a();
        if (r1 == 0) goto L_0x0406;
    L_0x03e5:
        r1 = r0.g;
        r2 = c.e.a.b.f.b.p.H0;
        r1 = r1.o(r2);
        if (r1 == 0) goto L_0x0406;
    L_0x03ef:
        r1 = r0.o();
        r1 = r1.y();
        r1 = r1.k();
        if (r1 != 0) goto L_0x0406;
    L_0x03fd:
        r1 = r0.o();
        r1 = r1.l;
        r1.b(r5);
    L_0x0406:
        r1 = r0.s();
        r2 = r0.o();
        r2 = r2.l;
        r2 = r2.a();
        r1 = r1.g;
        r1.set(r2);
        r1 = c.e.a.b.e.c.c9.a();
        if (r1 == 0) goto L_0x0465;
    L_0x041f:
        r1 = r0.g;
        r2 = c.e.a.b.f.b.p.p0;
        r1 = r1.o(r2);
        if (r1 == 0) goto L_0x0465;
    L_0x0429:
        r1 = r0.t();
        java.util.Objects.requireNonNull(r1);
        r1 = r1.a;	 Catch:{ ClassNotFoundException -> 0x043e }
        r1 = r1.a;	 Catch:{ ClassNotFoundException -> 0x043e }
        r1 = r1.getClassLoader();	 Catch:{ ClassNotFoundException -> 0x043e }
        r2 = "com.google.firebase.remoteconfig.FirebaseRemoteConfig";
        r1.loadClass(r2);	 Catch:{ ClassNotFoundException -> 0x043e }
        goto L_0x043f;
    L_0x043e:
        r3 = 0;
    L_0x043f:
        if (r3 != 0) goto L_0x0465;
    L_0x0441:
        r1 = r0.o();
        r1 = r1.z;
        r1 = r1.a();
        r1 = android.text.TextUtils.isEmpty(r1);
        if (r1 != 0) goto L_0x0465;
    L_0x0451:
        r1 = r0.d();
        r1 = r1.i;
        r2 = "Remote config removed with active feature rollouts";
        r1.a(r2);
        r1 = r0.o();
        r1 = r1.z;
        r1.b(r5);
    L_0x0465:
        r1 = r0.z();
        r1.t();
        r1 = r1.k;
        r1 = android.text.TextUtils.isEmpty(r1);
        if (r1 == 0) goto L_0x0483;
    L_0x0474:
        r1 = r0.z();
        r1.t();
        r1 = r1.l;
        r1 = android.text.TextUtils.isEmpty(r1);
        if (r1 != 0) goto L_0x04f4;
    L_0x0483:
        r1 = r0.i();
        r2 = r0.o();
        r2 = r2.c;
        r3 = "deferred_analytics_collection";
        r2 = r2.contains(r3);
        if (r2 != 0) goto L_0x04a6;
    L_0x0495:
        r2 = r0.g;
        r2 = r2.x();
        if (r2 != 0) goto L_0x04a6;
    L_0x049d:
        r2 = r0.o();
        r3 = r1 ^ 1;
        r2.v(r3);
    L_0x04a6:
        if (r1 == 0) goto L_0x04af;
    L_0x04a8:
        r1 = r0.s();
        r1.N();
    L_0x04af:
        r1 = r0.r();
        r1 = r1.d;
        r1.a();
        r1 = r0.x();
        r2 = new java.util.concurrent.atomic.AtomicReference;
        r2.<init>();
        r1.A(r2);
        r1 = c.e.a.b.e.c.ga.a();
        if (r1 == 0) goto L_0x04f4;
    L_0x04ca:
        r1 = r0.g;
        r2 = c.e.a.b.f.b.p.z0;
        r1 = r1.o(r2);
        if (r1 == 0) goto L_0x04f4;
    L_0x04d4:
        r1 = r0.x();
        r2 = r0.o();
        r2 = r2.C;
        r2 = r2.a();
        r1.g();
        r1.t();
        r3 = r1.I(r6);
        r4 = new c.e.a.b.f.b.a8;
        r4.m1380init(r1, r2, r3);
        r1.z(r4);
    L_0x04f4:
        r1 = r0.o();
        r1 = r1.t;
        r0 = r0.g;
        r2 = c.e.a.b.f.b.p.Y;
        r0 = r0.o(r2);
        r1.a(r0);
        return;
    L_0x0506:
        r0 = new java.lang.IllegalStateException;
        r1 = "Can't initialize twice";
        r0.<init>(r1);
        throw r0;
        */
        throw new UnsupportedOperationException("Method not decompiled: c.e.a.b.f.b.w4.run():void");
    }
}
